package net.lcheng.vo;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * Created by zwr on 2016/7/21 0021.
 */
public class UserBankcardModel {
    private String bankcardId;
    private String userId;
    private String userName;
    @NotEmpty(message = "开户名不能为空")
    private String accountName;
    @NotEmpty(message = "开户银行不能为空")
    private String bank;
    @NotEmpty(message = "开户省不能为空")
    private String addrProvinceCode;
    private String addrProvinceName;
    @NotEmpty(message = "开户市不能为空")
    private String addrCityCode;
    private String addrCityName;
    @NotEmpty(message = "开户支行不能为空")
    private String branch;
//    @NotEmpty(message = "银行卡格式不能为空")
@Pattern(regexp = "^\\d{16}|\\d{19}$", message = "银行卡格式不正确")
    private String cardNo;
    private Date creationTime;
    private Date modifyOn;

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getBranch() {
        return branch;
    }

    public void setBranch(String branch) {
        this.branch = branch;
    }

    public Date getModifyOn() {
        return modifyOn;
    }

    public void setModifyOn(Date modifyOn) {
        this.modifyOn = modifyOn;
    }

    public String getBankcardId() {
        return bankcardId;
    }

    public void setBankcardId(String bankcardId) {
        this.bankcardId = bankcardId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }


    public String getAddrProvinceCode() {
        return addrProvinceCode;
    }

    public void setAddrProvinceCode(String addrProvinceCode) {
        this.addrProvinceCode = addrProvinceCode;
    }

    public String getAddrProvinceName() {
        return addrProvinceName;
    }

    public void setAddrProvinceName(String addrProvinceName) {
        this.addrProvinceName = addrProvinceName;
    }

    public String getAddrCityCode() {
        return addrCityCode;
    }

    public void setAddrCityCode(String addrCityCode) {
        this.addrCityCode = addrCityCode;
    }

    public String getAddrCityName() {
        return addrCityName;
    }

    public void setAddrCityName(String addrCityName) {
        this.addrCityName = addrCityName;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }
}
